#! /bin/sh

if [ $# -ne 1 ]
then
        echo "you must specify the parent directory of these source code"
        exit 0
fi

read_dir(){
    echo "Recovering the following source code tree"
    for file in `ls $1`
    do
        if [ -d $1"/"$file ]
        then
            echo  "    "$1"/"$file
            #echo $file
            /lxr/custom.d/lxr_recover_tree.sh $file
	    
        fi
    done
    echo "Recovering completed!"
}

read_dir $1
